/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.student.tp3assignment2.dipcomply;

/**
 *
 * @author Student
 */
public class TransferManager {
    TransferSource source;
    TransferDestination destination;
    double value;

    public void SetSource(TransferSource source)
    {
        this.source = source;
    }

    public TransferSource GetSource()
    {
        return source;
    }

    public void SetDestination(TransferDestination destination)
    {
        this.destination = destination;
    }

    public TransferDestination GetDestination()
    {
        return destination;
    }

    public void SetValue(double value)
    {
        this.value = value;
    }

    public double GetValue()
    {
        return value;
    }

    public void Transfer()
    {
        source.RemoveFunds(value);
        destination.AddFunds(value);
    }
}
